LicenseFeature

@objc(LSLicenseFeature)
final class LicenseFeature
extension LicenseFeature : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, Identifiable, NSObjectProtocol

License feature information.

  • id

    The stable identity of the entity associated with this instance.

    Declaration

    Swift

    @objc
    var id: String { get }
  • Feature name.

    Declaration

    Swift

    @objc
    var name: String
  • Feature code.

    Declaration

    Swift

    @objc
    var code: String
  • Feature type.

    Declaration

    Swift

    @objc
    var featureType: LicenseFeatureType
  • Feature type.

    Declaration

    Swift

    @objc
    var expirationDate: Date?
  • Maximum consumption of the feature. Meaningful only for consumption feature type.

    Declaration

    Swift

    @objc
    var maxConsumptions: Int
  • Current total consumption or 0 if license type is not Consumption.

    Note

    Meaningful only for Consumption feature type.

    Declaration

    Swift

    @objc
    var consumptions: Int
  • If unlimited number or consumptions is allowed.

    Note

    Meaningful only for Consumption feature type.

    Declaration

    Swift

    @objc
    var allowUnlimitedConsumptions: Bool
  • If reset consumption is enabled. Refer to value in consumptionPeriod.

    Note

    Meaningful only for Consumption feature type.

    Declaration

    Swift

    @objc
    var isResetConsumptionEnabled: Bool
  • Value of reset consumption period. Makes sense only if isResetConsumptionEnabled is true.

    Note

    Meaningful only for Consumption feature type.

    Declaration

    Swift

    @objc
    var consumptionPeriod: ConsumptionPeriod
  • Number of local consumptions not synchornized with LicenseSpring platform. May be negative.

    Note

    Meaningful only for Consumption feature type.

    Declaration

    Swift

    @objc
    var localConsumptionsDelta: Int
  • If it’s allowed to go over maxConsumptionOverage.

    Note

    Meaningful only for Consumption feature type.

    Declaration

    Swift

    @objc
    var isConsumptionOverageAllowed: Bool
  • Maximum extra consumption value or 0 for unlimited value. 0 if feature type is not Consumption.

    Declaration

    Swift

    @objc
    var maxConsumptionOverage: Int
  • Metadata JSON.

    Declaration

    Swift

    @objc
    var metadata: Data?
  • Indicates whether negative consumption is allowed for Consumption feature. Meaningful only for Consumption license features.

    Declaration

    Swift

    @objc
    var allowNegativeConsumptions: Bool
  • Whether this is a floating cloud feature

    Declaration

    Swift

    var isFloating: Bool
  • Whether this is an offline floating feature

    Declaration

    Swift

    var isOfflineFloating: Bool
  • Count of devices currently using floating feature

    Declaration

    Swift

    var floatingInUseCount: UInt?
  • Floating time registered

    Declaration

    Swift

    var floatingTimeRegistered: Date?
  • Floating timeout in minutes

    Declaration

    Swift

    var floatingTimeout: UInt
  • Computed property for floating expiration time

    Declaration

    Swift

    var floatingExpirationTime: Date? { get }
  • Whether floating feature is registered

    Declaration

    Swift

    var isFloatingFeatureRegistered: Bool { get }
  • Undocumented

    Declaration

    Swift

    @objc
    init(name: String, code: String, featureType: LicenseFeatureType, isFloating: Bool = false, isOfflineFloating: Bool = false)
  • Undocumented

    Declaration

    Swift

    static func featureTypeFromString(_ value: String) -> LicenseFeatureType
  • Undocumented

    Declaration

    Swift

    static var stubExpired: LicenseFeature { get }
  • Undocumented

    Declaration

    Swift

    static var stubFloating: LicenseFeature { get }